#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Time: 2020/5/6  16:56
# @Author: 余浪人
# @email: yulangren520@gmail.com
from scheduler import dispatch_spider_main, dispatch_verify_main
import  threading

def main():
    print('定时任务开启！')
    poll = []  # 线程池
    thead_one = threading.Thread(target=dispatch_spider_main)
    thead_tow = threading.Thread(target=dispatch_verify_main)
    poll.append(thead_one)
    poll.append(thead_tow)
    for n in poll: n.start()  # 准备就绪,等待cpu执行

if __name__ == '__main__':
    main()